<?php

namespace Modules\Auth\Http\Controllers;


use Modules\Auth\Entities\Admin;
use Modules\Auth\Http\Requests\AdminRequest;

use Modules\Auth\Services\AdminService;
use Modules\Common\Http\Controllers\CommonController;

class AdminController extends CommonController
{
    private $service;
    public function __construct(AdminService $service)
    {
        $this->service = $service;
    }
   public function login(AdminRequest $request){
       $result = $this->service->login($request->all());
       return $this->success($result);
   }

    public  function register(AdminRequest $request, Admin $admin){
        dd("注册");
    }
    public  function logout(){
        dd("推出登录");
    }
    public function refreshToken(){
       dd("刷新令牌");
    }
    public function delete(AdminRequest $request){
       dd("删除");
    }
}
